GXMoveTransform
You can use theGXMoveTransform
function to alter the mapping property of a transform object so that it moves its associated shape by a specified horizontal and vertical distance.
void GXMoveTransform(gxTransform target, Fixed deltaX, Fixed deltaY);
target
- A reference to the transform object whose mapping property you want to alter.
deltaX
- The horizontal distance.
deltaY
- The vertical distance.
DESCRIPTION
TheGXMoveTransform
function calculates a new mapping matrix for the transform object referenced by thetarget
parameter. When applied to a shape, the new matrix performs the same mapping transformations on the shape as the original matrix, except that the new matrix also moves the shape horizontally by the distance specified in thedeltaX
parameter and vertically by the distance specified in thedeltaY
parameter.The distances are specified in geometry space.
ERRORS, WARNINGS, AND NOTICES
Errors out_of_memory transform_is_nil Warnings move_transform_out_of_range Notices (debugging version) mapping_unaffected SEE ALSO
For information about mapping matrices in general, see the mathematics chapter of Inside Macintosh: QuickDraw GX Environment and Utilities.To move a shape by altering its geometry, use the
GXMoveShape
function, described on page 6-66.